Skip to content

feat: Drawer preview (continuation of #2009) - #2285

Open
maxffarrell wants to merge 23 commits into
huntabyte:mainfrom
maxffarrell:codex/drawer-continuation
Open

maxffarrell wants to merge 23 commits into
huntabyte:mainfrom
maxffarrell:codex/drawer-continuation

Conversation

@maxffarrell

@maxffarrell maxffarrell commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Continues #2009 and preserves Hunter Johnston’s original Drawer commits through e1f5031a. This proposes a preview component exposed as unstable_Drawer, not a stable API. The docs and changeset now say that explicitly.

Decisions in the continuation

  • Keep dismissal on Bits UI’s shared outside-interaction layer. Add modal="trap-focus" for focus trapping without page scroll lock, and disablePointerDismissal without also disabling swipe or Escape.
  • Make open and snap-point requests cancelable and give callbacks a reason and originating event. Keep externally animated exits mounted only when requested, until the consumer calls actions.unmount().
  • Make keyboard viewport adjustments opt-in via Drawer.VirtualKeyboardProvider. Drawers without the provider keep a zero keyboard inset. The docs mobile search integration is separate in docs: consolidate mobile navigation and search in Drawer #2287.
  • Document the Svelte-specific choices, public types, and the vaul-svelte migration path.

Verification

  • Synced with main at 951affd8. Package build and publint, lint, and the SSR fixture passed. The fixture renders an open Drawer twice and checks for identical output.
  • 192 Drawer and dismissal tests passed across Chromium and WebKit. The broader run passed 489 tests; the one WebKit nested Dialog focus failure also reproduces on unchanged main.
  • A physical iOS Safari pass for software keyboard behavior is still outstanding. WebKit automation does not verify whether the OS keyboard opens.

@changeset-bot

changeset-bot Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 48cbbb3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
bits-ui Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor
built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
bits-ui ✅ Ready (View Log) Visit Preview 48cbbb3

This branch was successfully deployed

1 active deployment
Preview — 48cbbb3b Deployed Nov 28, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants